home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-23 | 1.6 KB | 59 lines | [TEXT/GEOL] |
- Item 5769635 23-Oct-89 11:40
-
- From: D2086 Efficient Field Svc, C Faith,PRT
-
- To: AUST0134 Jam Software Sydney
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: RE- On Using ISO
-
- Tseung,
-
- The Docs that come with InsideOut concerning MacApp are in error. The OVERRIDE
- for Tapplication.GetEvent as specified below fixes this problem. I have
- discussed this problem with Shana and this was their suggested fix. I now have
- no problems at all with the ISO debugger, and I love it.
-
- I put the OVERRIDE itself in {$IFC qDebug } since there is no need to even
- OVERRIDE GetEvent with debugging turned off.
-
- TISOApp = OBJECT(TApplication)
-
- FUNCTION TISOApp.DoIdle(phase: IdlePhase): Boolean; OVERRIDE;
-
- {$IFC qDebug } { Only needs events in Debug version }
- FUNCTION TISOApp.GetEvent(eventMask: INTEGER; sleep: LONGINT;
- cursorRgn: RgnHandle;
- VAR anEvent: EventRecord): BOOLEAN; OVERRIDE;
- {$ENDC }
-
- END;
-
- {$IFC qDebug } { Only needs events in Debug version }
- {-----------------------------------+}
- {| GetEvent |}
- {+-----------------------------------}
- {$S ADBRes}
- FUNCTION TISOApp.GetEvent(eventMask: INTEGER; sleep: LONGINT;
- cursorRgn: RgnHandle;
- VAR anEvent: EventRecord): BOOLEAN; OVERRIDE;
- VAR
- done: Boolean;
-
- BEGIN
- Repeat
- Done := TRUE;
- GetEvent := INHERITED GetEvent(eventMask,sleep,cursorRgn,anEvent);
- DBUnloadSeg;
- IF ISOEvent(anEvent) THEN
- Done := False;
- Until Done;
- END;
- {$ENDC }
-
- Hope this helps,
-
- Curtis Faith
-
-